<?php require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('message'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>申请列表</title>
    <link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="templates/js/jquery.min.js"></script>
    <script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">申请列表</span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<form name="form" id="form" method="post" action="message_save.php">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
        <tr align="left" class="head">
            <td width="5%" height="36" class="firstCol"><input type="checkbox" name="checkid" id="checkid" onclick="CheckAll(this.checked);"></td>
            <td width="5%">ID</td>
            <td width="5%">姓名</td>
            <td width="5%">性别</td>
            <td width="10%">职业</td>
            <td width="10%">联系方式</td>
            <td width="15%">申请协会</td>
            <td width="15%">申请职务</td>
            <td width="10%">住址</td>
            <td width="10%">IP</td>
            <td width="10%">申请时间</td>
        </tr>
        <?php

        $dopage->GetPage("SELECT * FROM `#@__applyuser` WHERE id <> 0");
        while($row = $dosql->GetArray())
        {
//            $content ='<span class="titflag" id="tit_'.$row['id'].'">';
//
//            if($row['htop'] == 'true')
//                $content .= '置顶 ';
//
//            if($row['rtop'] == 'true')
//                $content .= '推荐 ';
//            if($row['recont'] != '')
//                $content .= '[已回复]';
//
//            $content .= '</span>';
//
//
//            switch($row['checkinfo'])
//            {
//                case 'true':
//                    $checkinfo = '已审';
//                    break;
//                case 'false':
//                    $checkinfo = '未审';
//                    break;
//                default:
//                    $checkinfo = '没有获取到参数';
//            }
            ?>
            <tr align="left" class="dataTr">
                <td height="36" class="firstCol"><input type="checkbox" name="checkid[]" id="checkid[]" value="<?php echo $row['id']; ?>" /></td>
                <td><?php echo $row['id']; ?></td>
                <td><?php echo ClearHtml($row['realname']); ?></td>
                <td><?php echo $row['sex']?'男':"女" ?></td>
                <td ><?php echo $row['job'] ?></td>
                <td ><?php echo $row['tel'] ?></td>
                <td ><?php echo $row['aname'] ?></td>
                <td ><?php echo $row['ajob'] ?></td>
                <td ><?php echo $row['address'] ?></td>
                <td><?php echo $row['ip']; ?></td>
                <td><?php echo $row['apply_at']; ?></td>
            </tr>
            <?php
        }
        ?>
    </table>
</form>
<?php

//判断无记录样式
if($dosql->GetTotalRow() == 0)
{
    echo '<div class="dataEmpty">暂时没有相关的记录</div>';
}
?>
<div class="bottomToolbar"> <span class="selArea"><span>选择：</span> <a href="javascript:CheckAll(true);">全部</a> - <a href="javascript:CheckAll(false);">无</a> - <a href="javascript:DelAllNone('applyuser_save.php');" onclick="return ConfDelAll(0);">删除</a></span>  </div>
<div class="page"> <?php echo $dopage->GetList(); ?> </div>
<?php

//判断是否启用快捷工具栏
if($cfg_quicktool == 'Y')
{
    ?>
    <div class="quickToolbar">
        <div class="qiuckWarp">
            <div class="quickArea"><span class="selArea"><span>选择：</span> <a href="javascript:CheckAll(true);">全部</a> - <a href="javascript:CheckAll(false);">无</a> - <a href="javascript:DelAllNone('applyuser_save.php');" onclick="return ConfDelAll(0);">删除</a></span><span class="pageSmall"> <?php echo $dopage->GetList(); ?> </span></div>
            <div class="quickAreaBg"></div>
        </div>
    </div>
    <?php
}
?>
</body>
</html>